package com.rr.classTest;

/**
 * @author : RENBIAO
 * @createTime : 2022/2/10 9:56
 */
public class Car {

    //类是模板，对象是具体值
    public static void main(String[] args) {
        Car car1 = new Car();
        Car car2 = new Car();
        Car car3 = new Car();

        System.out.println(car1.hashCode());
        System.out.println(car2.hashCode());
        System.out.println(car3.hashCode());

        // 通过getclass出来的是一样的
        Class<? extends Car> aClass1 = car1.getClass();
        Class<? extends Car> aClass2 = car2.getClass();
        Class<? extends Car> aClass3 = car3.getClass();

        System.out.println(aClass1);
        System.out.println(aClass2);
        System.out.println(aClass3);

        System.out.println(aClass1.hashCode());
        System.out.println(aClass2.hashCode());
        System.out.println(aClass3.hashCode());
    }
}
